//
//  UIView+Frame.h
//  微博
//
//  Created by RHP on 15/3/22.
//  Copyright (c) 2015年 RHP. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (Frame)

// 在分类中会自动生成 get,set 方法的声明,不会生成成员变量
@property (nonatomic, assign) CGSize size;
@property (nonatomic,assign) CGFloat x;
@property (nonatomic,assign) CGFloat y;
@property (nonatomic,assign) CGFloat width;
@property (nonatomic,assign) CGFloat higth;
@property (nonatomic, assign) CGFloat centerX;
@property (nonatomic, assign) CGFloat centerY;


@property (nonatomic) CGFloat left;        ///< Shortcut for frame.origin.x.
@property (nonatomic) CGFloat top;         ///< Shortcut for frame.origin.y
@property (nonatomic) CGFloat right;       ///< Shortcut for frame.origin.x + frame.size.width
@property (nonatomic) CGFloat bottom;      ///< Shortcut for frame.origin.y + frame.size.height
@property (nonatomic) CGPoint origin;      ///< Shortcut for frame.origin.

@end
